package com.demo.page.service;

import com.demo.common.pojo.Products;
import com.demo.page.service.impl.ProductFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "demo-service-product",fallback = ProductFeignFallBack.class)
public interface ProductFeign {


    @RequestMapping("/product/query/{id}")
    public Products query(@PathVariable Integer id);
}
